/* @(#)GSAddUnBalanceDetailAction.java
 * 
 *  Project:GS
 *  
 *  Modify  Information:
 *  ===============================================
 *   Author          Date            Description
 *  -------------- ---------------  ---------------
 *  Jenny  Li      2006-6-6          新增
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 *
 */
package com.hitrust.gs.action;

import java.util.ArrayList;

import com.hitrust.gs.business.GSManufactureProcessor;
import com.hitrust.gs.business.GSProviderProcessor;
import com.hitrust.gs.dao.GSOrderDeptInfoDAO;
import com.hitrust.gs.dao.GSOrganizationDAO;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;

/**
 * @author JennyLi
 *
 */
public class GSAddUnBalanceDetailAction extends GSBaseAction {

    public String execute(GSBaseForm aForm) throws Exception {
        //页面参数
        String tParams = aForm.getRequest().getParameter("params");
        try{
            String[] tParam = tParams.split(",");
            //查询供应商名称
            GSProviderProcessor ppro=new GSProviderProcessor();
            String proName=ppro.getProviderById(tParam[0]).getGs_provider_shortname();
            aForm.getRequest().setAttribute("balanceYM",tParam[1]);
            aForm.getRequest().setAttribute("proName",proName);
            aForm.getRequest().setAttribute("proid",tParam[0]);
            //种类等级
            GSManufactureProcessor tGSManufProcessor = new GSManufactureProcessor();
            tGSManufProcessor.getManufactureOfLevel(aForm);
        }catch(Exception e){
            aForm.getRequest().setAttribute("window","true");
            throw e;
        }
        return GSBaseConstants.FORWARD_SUCCESS;
    }

}
